//
//  RegisterRequest.h
//  collection
//
//  Created by Jing on 4/5/12.
//  Copyright (c) 2012 Tsinghua University. All rights reserved.
//

#import "AbstractRequest.h"

@interface RegisterRequestData : RequestData

@property (nonatomic, copy) NSString*   nickname;
@property (nonatomic, copy) NSString*   email;
@property (nonatomic, copy) NSString*   password;

@end

@implementation RegisterRequestData

- (void)dealloc {
    
    self.nickname = nil;
    self.email = nil;
    self.password = nil;
    
    [super dealloc];
}

@end

@interface RegisterResponse : Response

@property (nonatomic)   long long   userID;
@property (nonatomic, copy) NSString*   sessionKey;

@end

@implementation RegisterResponse

- (void)dealloc {
    
    self.sessionKey = nil;
    
    [super dealloc];
}

@end

@interface RegisterRequest : AbstractRequest

@end
